package JavaSE_core.IO;

/**
 * 构建一个完整类
 *
 * get and set
 *
 * 重载函数和空重载
 *
 * toString
 */

public class Demo16 {
    public String id;
    public String name;
    public Integer age;

    @Override
    public String toString() {
        return "Demo16{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Demo16() {
    }

    public Demo16(String id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }
}
